const cloud = require('wx-server-sdk');
cloud.init();
exports.main = async (event) => {
  const db = cloud.database()
  let res = (await db.collection('course').where({ _id: event._id }).get()).data[0]
  return res
}
